package com.zoweunion.mechanic.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 生产商用户角色表
 * 
 * @author xp
 * @email 17688825585@163.com
 * @date 2020-09-28 11:00:10
 */
@Data
@TableName("t_s_ss_role_user")
public class RoleUserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 角色名称
	 */
	private String roleName;
	/**
	 * 父级id
	 */
	private Long pId;
	/**
	 * 服务商id
	 */
	private String sId;
	/**
	 * 删除标识
	 */
	private Integer deleteFlag;
	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@TableField(exist = false)
	private List<RoleUserEntity> childList;

}
